package demo;

import java.util.Scanner;

public class Text6 {
    public static void main(String[] args) {
        //价格1000元，会员打折1级会员打九折。二级八折，三级七折
        int price = 1000;
        System.out.println("当前价格为1000元");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的会员等级");
        int grade = sc.nextInt();
            if (grade == 1) {
                System.out.println("打完九折后的价格为：" + (price * 0.9));
            } else if (grade == 2) {
                System.out.println("打完八折后的价格为：" + (price * 0.8));
            } else if (grade == 3) {
                System.out.println("打完七折后的价格为：" + (price * 0.7));
          } else {
                System.out.println("不打折，价格为：" + price);
            }
        }
    }


//        System.out.println("当前价格为1000元");
//        int price =1000;
//        Scanner sc = new Scanner(System.in);
//        System.out.println("请录入会员的等级：");
//        int member = sc.nextInt();
//            if(member==1){
//                System.out.println("价格为："+(price*0.9));
//            } else if (member==2) {
//                System.out.println("价格为"+(price*0.8));
//            }else if (member==3){
//                System.out.println("价格为"+(price*0.7));
//            }else{
//                System.out.println("价格为："+price);
//            }
//        }
